<template>
	<view class="u-p-30">
		<view class="flex-center u-font-bold">
			{{info.title}}
		</view>
		<!-- <view class="flex-center u-font-28 " style="color: #999;">
			时间：{{info.creatTime}}
		</view> -->
		<view class="u-m-tb-30" v-html="info.content">
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:'',
				info:{}
			};
		},
		onLoad(opt) {
			this.id = opt.id
			this.init()
		},
		methods:{
			init(){
				this.$api.get(`/news/${this.id}`).then(res=>{
					this.info = res.data
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
